/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

/**
 * <p>Project: javaseapp - Oper1
 * <p>Powered by webrx On 2021-07-27 14:29:04
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Oper4 {
    public static void main(String[] args) {
        //Date d = new Date();
        //System.out.println(d.getHours());


        //比较运算符  == < <= > >= !=
        Calendar c = Calendar.getInstance();
        int hour = c.get(Calendar.HOUR_OF_DAY);
        int hour2 = c.get(11);
        System.out.println(hour);
        System.out.println(hour2);
        if(hour<12){
            System.out.println("上午好");
        }else{
            System.out.println("下午好");
        }

    }
}
